home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 146
/
(Vol 146) Jan 07 2012.iso
/
Games
/
super_fly.swf
/
scripts
/
DefineSprite_86
/
frame_8
/
DoAction.as
Wrap
Text File
|
2012-01-07
|
536b
|
30 lines
theTime = getTimer();
if(theTime < MoveEnd)
{
gotoAndPlay(6);
}
else
{
setProperty("fly1", _X, xL4);
setProperty("fly1", _Y, yL4);
wherex = getProperty("fly1", _X);
wherey = getProperty("fly1", _Y);
if("320" < wherex)
{
setProperty("fly1", _X, "319");
}
if("120" < wherey)
{
setProperty("fly1", _Y, "119");
}
if(wherex < "0")
{
setProperty("fly1", _X, "1");
}
if(wherey < "0")
{
setProperty("fly1", _Y, "1");
}
gotoAndPlay(5);
}